package com.solo.eggsolo.controller.auth;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.solo.eggsolo.common.bean.JsonResult;

import io.swagger.annotations.Api;
/**
 * 
 * @author Yu
 *
 */
@RestController
@RequestMapping("/auth")
@Api(tags = "登录的用户才能访问")
public class TestAuthController {
	
	
	@RequestMapping(value = "/list", method = { RequestMethod.GET })
	public JsonResult sayHello() {
		JsonResult result = new JsonResult(500,Boolean.FALSE, "错误");
		
		String messString = "我登陆了";
		return result = new JsonResult(200,Boolean.TRUE, "正确",messString);
	}
	
	@RequestMapping(value = "/lis", method = { RequestMethod.GET })
	public JsonResult hello() {
		JsonResult result = new JsonResult(500,Boolean.FALSE, "错误");
		
		String messString = "登陆了";
		return result = new JsonResult(200,Boolean.TRUE, "正确",messString);
	}
}
